/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package forensicsGUI;

import javax.swing.JFileChooser;
import java.io.File;
import java.util.*;
import javax.swing.JList;
import javax.swing.DefaultListModel;

import java.io.*;
import java.awt.*;
import java.util.*;
import java.text.*;
import javax.swing.*;
import java.awt.event.*;
import javax.swing.event.*;
import java.util.Timer;
/**
 *
 * @author marc
 */
import java.util.Timer;
import java.util.TimerTask;
import java.io.*;
import java.util.Vector;
import javax.swing.JTextArea;
import javax.swing.JTextField;

public final class UpdateGuiTask extends TimerTask {
    private JTable execTable = null;

  public void setExecutionTable(JTable table)
  {
      execTable = table;
  }
  
  
  /**
  * Implements TimerTask's abstract run method.
  */
  public int doSave()
  {
      try
      {
          if (execTable == null)
               return 1;
           execTable.updateUI();
              
      }
      catch(Exception e)
      {
         e.printStackTrace();
      }
      return 1;
  }
  public void run(){
    //toy implementation
      doSave();
  }
 
}